package com.hsogoo.avatar.enums;

import lombok.Getter;

/**
 * @Author huangsaigang
 * Created @2018/9/29.
 */
@Getter
public enum  AvatarResult {

    SUCCESS("000000", "成功"),
    ERROR_PARAM("000001", "参数错误"),
    TIMEOUT_EXCEPTION("000002", "执行超时"),
    OUT_OF_PROVIDER_LIMIT("000003", "超过服务流量控制异常"),
    OUT_OF_PROVIDER_METHOD_LIMIT("000004", "超过服务方法流量控制异常"),
    FALL_BACK_RESPONSE("000005", "超过流量控制默认返回"),
    INVOKE_EXCEPTION("999999", "执行异常");

    private String code;
    private String message;


    private AvatarResult(String code, String message) {
        this.code = code;
        this.message = message;
    }


}
